<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>09-y模式匹配符</title>
	<style type="text/css">
	* {
		padding: 0;
		margin: 0;
	}
	span.red{
		color: red;
	}
    </style>
</head>
<body>
	<div class="container" id="container">
		<h1>09-y模式匹配符</h1> 
		<p> </p>
	</div>
	<script src="../tools/utils.js"></script>
	<script type="text/javascript">
	var hd = `后盾人QQ群:11111111,999999999,88888888
后盾人不断分享视频教程，后盾人网址是 houdunren.com`;
	
	var reg = /(\d{5,12}),?\s*/
	console.log(hd.match(reg))

	var reg2  = new RegExp(reg.source, 'y')
	reg2.lastIndex = 7
	console.log(reg2)
	var match, qqList = []
	while(match = reg2.exec(hd)) {
		qqList.push(match[1])
	}
	console.log(qqList)
	
	
	</script>
</body>
</html>